package com.ruoyi.huanghefd.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 作业安全风险控制卡 子表 过程风险预控
 * @TableName attachsheet_os1
 */
@TableName(value ="attachsheet_os1")
@Data
public class AttachsheetOs1 implements Serializable {
    /**
     * ID
     */
    @TableId
    private String asId;

    /**
     * 工作票编号
     */
    private String asCode;

    /**
     * 序号
     */
    private Integer asOrder;

    /**
     * 作业过程
     */
    private String process;

    /**
     * 作业分险描述及后果
     */
    private String saftyDesc;

    /**
     * 风险等级
     */
    private String saftyLevel;

    /**
     * 处理措施
     */
    private String dealMeasure;

    /**
     * 执行情况
     */
    private String asResult;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AttachsheetOs1 other = (AttachsheetOs1) that;
        return (this.getAsId() == null ? other.getAsId() == null : this.getAsId().equals(other.getAsId()))
            && (this.getAsCode() == null ? other.getAsCode() == null : this.getAsCode().equals(other.getAsCode()))
            && (this.getAsOrder() == null ? other.getAsOrder() == null : this.getAsOrder().equals(other.getAsOrder()))
            && (this.getProcess() == null ? other.getProcess() == null : this.getProcess().equals(other.getProcess()))
            && (this.getSaftyDesc() == null ? other.getSaftyDesc() == null : this.getSaftyDesc().equals(other.getSaftyDesc()))
            && (this.getSaftyLevel() == null ? other.getSaftyLevel() == null : this.getSaftyLevel().equals(other.getSaftyLevel()))
            && (this.getDealMeasure() == null ? other.getDealMeasure() == null : this.getDealMeasure().equals(other.getDealMeasure()))
            && (this.getAsResult() == null ? other.getAsResult() == null : this.getAsResult().equals(other.getAsResult()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAsId() == null) ? 0 : getAsId().hashCode());
        result = prime * result + ((getAsCode() == null) ? 0 : getAsCode().hashCode());
        result = prime * result + ((getAsOrder() == null) ? 0 : getAsOrder().hashCode());
        result = prime * result + ((getProcess() == null) ? 0 : getProcess().hashCode());
        result = prime * result + ((getSaftyDesc() == null) ? 0 : getSaftyDesc().hashCode());
        result = prime * result + ((getSaftyLevel() == null) ? 0 : getSaftyLevel().hashCode());
        result = prime * result + ((getDealMeasure() == null) ? 0 : getDealMeasure().hashCode());
        result = prime * result + ((getAsResult() == null) ? 0 : getAsResult().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", asId=").append(asId);
        sb.append(", asCode=").append(asCode);
        sb.append(", asOrder=").append(asOrder);
        sb.append(", process=").append(process);
        sb.append(", saftyDesc=").append(saftyDesc);
        sb.append(", saftyLevel=").append(saftyLevel);
        sb.append(", dealMeasure=").append(dealMeasure);
        sb.append(", asResult=").append(asResult);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}